﻿CREATE FUNCTION [dbo].[UserID] ()
RETURNS INT
AS
BEGIN
	RETURN (select UserID from master..tblSalesManagerUser where [system_user] = system_user)
END